<div class="login-form">
    <div class="common_item">
        <table class="with-title-input">
            <tr>
                <td class="title">账号</td>
                <td class="input">
                    <input type="text" class="am-form-field account" placeholder="请输入账号名称" />
                </td>
            </tr>
        </table>
    </div>

    <div class="common_item">
        <table class="with-title-input">
            <tr>
                <td class="title">密码</td>
                <td class="input">
                    <input type="password" class="am-form-field password" placeholder="请输入登录密码" />
                </td>
            </tr>
        </table>
    </div>
</div>

<div style="margin: 10px 15px 5px 15px;">
    <button type="button" class="am-btn am-btn-primary btn-login common_button">登录</button>
</div>

<ul class="am-avg-sm-3 bottom-menus">
    <li><a href="center.html?cmd=register">马上注册</a></li>
    <li><a href="#" class="try">免费试玩</a></li>
    <li><a href="../pc/index.html">电脑版</a></li>
</ul>

<style type="text/css">
    .bottom-menus li {
        text-align: center;
    }
    .bottom-menus a {
        color: #2cc0ce;
    }
</style>

<script src="js/login.js"></script>
<script>
    ME.autoExit = false;
</script>

<script>
    $(".bottom-menus .try").click(function() {
        Login.trial(function() {
            Util.jumpUrl({
                file: 'center.html',
                cmd: 'gamecenter',
                try: 1,
            });
        });
    });

    $(".btn-login").click(function() {
        var account = $("input.account").val().trim();
        var password = $("input.password").val().trim();
        if (account == '') {
            alert2("请输入登录账号！");
            return;
        }
        if (password == '') {
            alert2("请输入登录密码！");
            return;
        }

        Login.signin(account, password);
    });
</script>

